package com.sna.snaapplication.service.UserSys.impl;

import com.sna.snaapplication.entity.usercore.Role;
import com.sna.snaapplication.mapper.RoleMapper;
import com.sna.snaapplication.service.UserSys.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RoleServiceImpl implements RoleService {

    @Autowired
    RoleMapper roleMapper;
    @Override
    public Long FindId(String roleName) {

        return roleMapper.FindId(roleName);
    }

    @Override
    public Role FindByUserId(Long userId) {
        return roleMapper.FindByUserId(userId);
    }
}
